<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box{
            width: 300px;
            height: 300px;
            padding: 10px;
            border: 2px solid brown;
        }
        a{
            text-decoration: none;
            width: 100px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            color: aliceblue;
            display: block;
            background-color: rgb(238, 94, 224);
        
        }
        a:hover{
            background-color: blueviolet;
        }
        .a2{
            position: relative;
            top: -100px;
            left: 200px;
        }
        .a3{
            /* position: relative;
            top: 20px; */
        }
        .a4{
            position: relative;
            top: -100px;
            left: 200px;
        }
        .a5{
            position: relative;
            left: 100px;
            bottom:300px;
            
        }
    </style>
</head>
<body>
    <div id="box">
        <a class="a1" href="">链接1</a>
        <a class="a2" href="">链接2</a>
        <a class="a3" href="">链接3</a>
        <a class="a4" href="">链接4</a>
        <a class="a5" href="">链接5</a>
    </div>
</body>
</html>